#ifndef __GETSERVICE_H__
#define __GETSERVICE_H__

#include <workflow/WFFacilities.h>
#include <workflow/WFTaskFactory.h>
#include  <workflow/HttpUtil.h>
#include  <signal.h>
#include  <iostream>
#include <condition_variable>
#include <mutex>
using std::string;
using std::mutex;
using std::unique_lock;
using std::condition_variable;

class GetService
{
public:
    GetService();
    void getService(string & ip,unsigned short & port,string serviceName);

    bool success(){
        return _success;
    }

private:
    bool _success;
    mutex m_loak;
    condition_variable ilessOne;
};




#endif // __GETSERVICE_H__

